﻿using System.Web.Mvc;

namespace Mvc3Demo.Controllers
{
    public class HomeController : Controller
    {
        //http://weblogs.asp.net/scottgu/archive/2010/01/27/extensible-output-caching-with-asp-net-4-vs-2010-and-net-4-0-series.aspx
        [OutputCache(Duration = 60)]
        public ActionResult Index()
        {
            ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";

            TempData["Home"] = "Home Data";

            return View();
        }


        [OutputCache(Duration = 86400)]
        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        [OutputCache(Duration = 86400)]
        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }

    }
}
